<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <!-- 加载部部样式及META信息 -->
    <title>管理员</title>
    <div th:replace="common/meta"></div>
    <script>
        require.config.jsname = "backend/craft/craft";
        require.config.modulename="admin"
        require.config.controllername="auth.admin"
        require.config.actionname="add"
        require.config.moduleurl="/admin/add"
    </script>
</head>

<body class="inside-header inside-aside is-dialog">
<div id="main" role="main">
    <div class="tab-content tab-addtabs">
        <div id="content">
            <div class="row">
                <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                    <div class="content">
                        <form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="/sys/craft/save">
                            <div class="form-group">
                                <label class="control-label col-xs-3 col-sm-2">名称:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input type="text"  class="form-control" autocomplete="off" name="title" placeholder="输入工艺名称"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-xs-3 col-sm-2">工艺描述:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input type="text"  class="form-control" autocomplete="off" name="content" placeholder="输入工序描述"/>
                                </div>
                            </div>
                            <div id="fuji" class="form-group">
                                <label  class="control-label col-xs-12 col-sm-2">是否禁用:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <select class="form-control selectpicker" required="" name="status">
                                        <option value="0" >启用</option>
                                        <option value="-1" >禁用</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group hidden layer-footer">
                                <label class="control-label col-xs-12 col-sm-2"></label>
                                <div class="col-xs-12 col-sm-8">
                                    <button type="submit" class="btn btn-success btn-embossed disabled">确定</button>
                                    <button type="reset" class="btn btn-default btn-embossed">重置</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<div th:replace="common/script"></div>
<script th:inline="javascript">
    var data=[[${data}]]
</script>
</html>